package com.hs.jhzd.repository;

import com.hs.jhzd.entity.HqRycdxxbEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.Date;
import java.util.List;

public interface HqRycdxxbRepository extends JpaRepository<HqRycdxxbEntity, String> {

//    @Query("select y from HqRycdxxbEntity y where   (y.rq BETWEEN :startTime and :endTime) and y.scbj = false and y.jsbh=:jsbh")
//    public List<HqRycdxxbEntity> findByRq(@Param("jsbh") String jsbh,@Param("startTime") Date startTime, @Param("endTime") Date endTime);
    @Query("select y from HqRycdxxbEntity y where   (y.rq BETWEEN :startTime and :endTime) and y.scbj = false")
    public List<HqRycdxxbEntity> findByRq(@Param("startTime") Date startTime, @Param("endTime") Date endTime);

}
